package day14;

import java.util.HashMap;
import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        char[]ch1=in.next().toCharArray();
        char[]ch2=in.next().toCharArray();
        int[]hash=new int[26];
        for (int i = 0; i < ch1.length ; i++) {
            hash[ch1[i]-'A']++;
        }
        for (int i = 0; i < ch2.length ; i++) {
            hash[ch2[i]-'A']--;
            if (hash[ch2[i]-'A']<0){
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}
